<?PHP
session_start();

function findPopedom ($className, $popedomName) {
	$popedom = false;
	if (isset($_SESSION['popedom'])) {
		foreach ($_SESSION['popedom'][$className] as $popedomPack) {
			if ($popedomPack['name'] == $popedomName) {
				$popedom = $popedomPack['allow'];
				break;
			}
		}
	}
	return $popedom;
}
?>